#include "student.h"
#include <QString>
#include <string>
#include <QObject>
#include <iostream>
using std::string;
student::student(QObject *parent) : person(parent)
{

}
student::student(QString nmb,QString nm,bool sx,int ae,QString tp,QString cge,QString th,QString tm,int pro,int pa)
    :person(nmb,nm,sx,ae,cge,tm,pro,pa){
    type=tp;
    teach=th;
    }
QString student::findtype(){            ///查询学生类别
    return type;
    }
void student::settype(QString tp){
    type=tp;
}
QString student::findteach(){               ///查询导师
return teach;
}
void student::setteach(QString th){           ///修改导师
teach=th;
}
void student::save(ostringstream& os){
os<<number.toStdString()<<endl<<name.toStdString()<<endl<<sex<<endl<<age<<endl<<type.toStdString()<<endl<<college.toStdString()<<endl<<teach.toStdString()<<endl<<time.toStdString()<<endl<<program<<endl<<paper<<endl;
}
